<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
</head>
<body>
    <script>
        // $.each([0,1,'a'],function(i,n){
        //     alert("Item #"+i+":"+n);
        // });
        // var jiajiechishi=$.grep([0,1,2],function(n,i){
        //     return n>0
        // })
        // alert(jiajiechishi);
        // var FNC=$.inArray(3,[2,3,6]);
        // alert(FNC);
        var a={a:3};
        var b={b:4};
        var c={a:5,c:3};
        $.extend(a,b,c);
        console.log(a,b,c);
        
        console.log($.trim("    hello, how are you?    "));
        console.log($.trim("jiajiechishi"));
        var object1 = {
                apple: 0,
                banana: { weight: 52, price: 100 },
                cherry: 97
            };
            var object2 = {
                banana: { price: 200 },
                durian: 100
            };

            // Merge object2 into object1
            $.extend(object1, object2);
            // 深度合并
            $.extend(true, object1, object2);
            console.log(object1, object2);
            

    </script>
</body>
</html>